package com.cyz.common.dto;

import com.cyz.common.validated.AddGroup;
import com.cyz.common.validated.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.util.List;

@Data
public class StudyResourceDto {

    @Null(message = "不允许赋值",groups = AddGroup.class)
    @NotNull(message = "不能为空",groups = UpdateGroup.class)
    private Integer id;
    private String title;
    private String path;
    private String thumbnail;
    private String state;
    //分类id
    private List<Integer> typeIds;
}
